package com.yurun.orderservice.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yurun.domain.OrderTb;
import com.yurun.orderservice.mapper.OrderTbMapper;
import com.yurun.orderservice.tcc.OrderActionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Xi Gao
 * @date 2020/9/2 17:31
 */
@Service
public class OrderService extends ServiceImpl<OrderTbMapper, OrderTb> {

    @Resource
    private OrderTbMapper orderTbMapper;

    @Resource
    private OrderActionService orderActionService;


    public boolean saveOrder(OrderTb orderTb) {
        return orderActionService.saveOrder(null, orderTb);
    }
}
